<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!doctype html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>LoveTemperature</title>
		<meta name="author" content="ningzero"/>

		<!-- CSS -->
		<link rel="stylesheet" href="../css/jquery-ui.min.css">
		<link rel="stylesheet" href="../css/goodManage.css">
		<!-- end CSS-->

	</head>

	<body>

		<div id="container">
			<header class="header">
				<div id="login_cart_bar">
					<div id="loginRegisterDiv">
						您好，<s:property value="#session.user.name" />
						<a class="pinkAnchor" href="http://localhost:8080/lovetemperature/sale/logout">退出登录</a>
					</div>
					<div id="cartAccountDiv">
						<a class="pinkAnchor" onclick='javascript:window.location="http://localhost:8080/lovetemperature/shop/editStaff"'>我的页面</a>
					</div>
				</div>
				<div id="logo_bar">
					<img src="../img/logo.gif"/>
					<img id="logo_text" src="../img/logo2.png"/>
				</div>
				<div id="nav_bar">
					<ul>
						<li class="nav_padding_left"></li>
						<li class='shouye' >
							<a href="http://localhost:8080/lovetemperature/shop/showOrders">订单管理</a>
						</li>
						<li class='dangao' >
							<a href="http://localhost:8080/lovetemperature/shop/showGood">产品管理</a>
						</li>
					</ul>
				</div>
			</header>
			<div id="mainContent" class="mainContent">
				<div id="tabs">
				  <ul>
				    <li><a href="http://localhost:8080/lovetemperature/shop/ajaxGood?category=蛋糕">蛋糕</a></li>
				    <li><a href="http://localhost:8080/lovetemperature/shop/ajaxGood?category=面包">面包</a></li>
				    <li><a href="http://localhost:8080/lovetemperature/shop/ajaxGood?category=干点">干点</a></li>
				    <li><a href="http://localhost:8080/lovetemperature/shop/ajaxGood?category=拌手礼">拌手礼</a></li>
				    <li><a href="http://localhost:8080/lovetemperature/shop/ajaxGood?category=饮品">饮品</a></li>
				    <li><a href="http://localhost:8080/lovetemperature/shop/ajaxGood?category=其他">其他</a></li>
				  </ul>
				</div>
				<div id="addGoodDiv">
					<div class="normalBtn" onclick="addGood()">添加产品</div>
				</div>
			</div>
		</div>
		<!--! end of #container -->
		
		<footer id="footer">
			<img src="../img/tmp/tmpfooter.png" />
		</footer>

		<!-- scripts -->
		<script type="text/javascript" src="../js/libs/jquery-1.9.1.min.js" ></script>
		<script type="text/javascript" src="../js/libs/jquery-ui.min.js" ></script>
		<script type="text/javascript" src="../js/index.js" ></script>
		<script>
			$(function(){
				$( "#tabs" ).tabs({
			      beforeLoad: function( event, ui ) {
			        ui.jqXHR.error(function() {
			          ui.panel.html(
			            "暂时无法读取数据，请稍后再试……" );
			        });
			      }
			    });
			});
			function addGood(){
				window.location="http://localhost:8080/lovetemperature/shop/editGood";
			}
			function editGood(stockId){
				window.location="http://localhost:8080/lovetemperature/shop/editGood?stockId="+stockId;
			}
		</script>
		<!-- end scripts-->
	</body>
</html>
